package cn.edu.experiment3.entity;

public class Course {
    private String id;
    private String name;
    private String location;
    private String time;
    private Teacher teacher;   // 授课教师

    public Course(String id, String name, String location, String time) {
        this.id = id;
        this.name = name;
        this.location = location;
        this.time = time;
    }

    public String getId()       { return id; }
    public String getName()     { return name; }
    public String getLocation() { return location; }
    public String getTime()     { return time; }
    public Teacher getTeacher() { return teacher; }
    public void setTeacher(Teacher teacher) { this.teacher = teacher; }
}